package com.doform.android.xianggucheng.bean.request_bean;

import com.doform.android.xianggucheng.help.AppHelp;
import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-07.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqAddInlibraryDetail {

    /**
     * m2sid 	是 	string 	商品和供应商关联ID
     * buynum 	是 	string 	采购数量
     * buyprice 	是 	string 	采购价
     * whid 	是 	string 	仓库ID
     * applyid 	是 	string 	采购单ID
     * applyguid 	是 	string 	采购单GUID
     * matid 	是 	string 	商品ID
     * supplierid 	是 	string 	供应商id
     */
    private boolean debug = AppHelp.getInstance().Debug;
    private String applyguid;
    private String _savetype = "add";
    private String applyid;
    private String matid;
    private String m2sid;
    private String whid;
    private String buynum;
    private String buyprice;


    public ReqAddInlibraryDetail(String mId,String guid, String misid, String goodId, String mLiraryId,String num,String price) {
        this.applyid = mId;
        this.applyguid = guid;
        this.m2sid = misid;
        this.matid = goodId;
        this.whid = mLiraryId;
        this.buynum = num;
        this.buyprice = price;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
